Skip to content

Fixed controlling organ elements when recording or playing MIDI https//github.com/GrandOrgue/grandorgue/issues/2388#2441

Open
oleg68 wants to merge 1 commit intoGrandOrgue:masterfrom
oleg68:bugfix/midi-recorder-controls
Open

Fixed controlling organ elements when recording or playing MIDI https//github.com/GrandOrgue/grandorgue/issues/2388#2441
oleg68 wants to merge 1 commit intoGrandOrgue:masterfrom
oleg68:bugfix/midi-recorder-controls

Conversation

@oleg68
Copy link
Contributor

@oleg68 oleg68 commented Mar 11, 2026

Resolves: #2388

The reason of the bug was using GOMidiMap::GetElementByString that always returned 0 because nobody inserted any elements.

This PR:

  1. Renames GOMidiMap::m_ElementMap to m_RecorderElementMap
  2. Renames GOMidiMap::GetElementByString to EnsureRecorderElementName and automatically inserts the name if it does not exist
  3. Renames GetElementByID to GetRecorderElementNameById

It also remaps the ids from 0 for compatibility with old MIDI files

@oleg68 oleg68 requested review from larspalo and rousseldenis March 11, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loaded MIDI file turns on all stops

1 participant